package com.axjy.yycg.web;

import com.axjy.yycg.pojo.Diqu;
import com.axjy.yycg.service.DiquService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class DiquHandler {

    @Resource
    private DiquService diquService;

    @GetMapping("/list")
    public List<Diqu> list(){
        return diquService.list();
    }
}
